package cn.getech.data.development.api;

import cn.getech.data.development.entity.JobRunHistory;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface JobRunHistoryApi {

    @RequestMapping(value = "/api/dataBdp/jobRunHistory/getJobRunHistoryOne",method = RequestMethod.POST)
    JobRunHistory getJobRunHistoryOne(@RequestBody JobRunHistory jobRunHistory);

    @RequestMapping(value = "/api/dataBdp/jobRunHistory/insert",method = RequestMethod.POST)
    void insert(@RequestBody JobRunHistory jobRunHistory);

    @RequestMapping(value = "/api/dataBdp/jobRunHistory/saveOrUpdate2",method = RequestMethod.POST)
    void saveOrUpdate2(@RequestBody JobRunHistory jobRunHistory);

    @RequestMapping(value = "/api/dataBdp/jobRunHistory/selectListByDepOozieId",method = RequestMethod.GET)
    List<JobRunHistory> selectListByDepOozieId(@RequestParam("oozieId") String oozieId);

    @RequestMapping(value = "/api/dataBdp/jobRunHistory/selectAllRunningList",method = RequestMethod.GET)
    List<JobRunHistory> selectAllRunningList();

}
